package com.gnkexy.springframework.test.event;

import com.gnkexy.springframework.context.ApplicationListener;
import com.gnkexy.springframework.context.event.ContextRefreshedEvent;

import java.util.Date;

public class ContestRefreshedEventListener implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        System.out.println("刷新事件："+event.getSource()+new Date());
    }
}
